package com.example.dubboconsumer.controller;

import com.example.dubboprovider.service.UserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/user")
public class UserController {

    @DubboReference(timeout = 60000)
    private UserService userService;

    @RequestMapping("/hello")
    public String Hello(){
        return userService.hello();
    }


}
